import Vue from 'vue';
import Router from 'vue-router';
import Home from '../views/home/index.vue';
import Login from '../views/login/index.vue';
import txyt from '../views/home/tianxiayitong/index.vue';


Vue.use(Router);

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home,
    },
    {
      path: '/main',
      name: 'main',
      component: Home,
      children: [
        {
          path: '/main/tianxiayitong',
          name: 'tianxiayitong',
          component: txyt,
        },
      ],
    },
    {
      path: '/login',
      name: 'login',
      component: Login,
    },
  ],
});
